<?php
if (count($rows)>0) {
	foreach ($rows as $r) {
?>
<div class="program-select disable-select" onclick="selectProgram(this)" data-id="<?php echo $r['id']; ?>" data-points="<?php echo $r['required_points']; ?>">
	<div class="points">
		<?php echo $r['required_points']; ?>
	</div>
	<div class="content">
		<div class="title"><?php echo strip_tags($r['title']); ?></div>
		<div class="desc"><?php echo strip_tags($r['description']); ?></div>
	</div>
	<div class="clearfix"></div>
</div>
<?php
	}
} else {
?>
<div class="well well-large gray">
	<h3 class=""><?php echo BUtils::T('loyalty_program_no_msg'); ?></h3>
	<p></p>
</div>
<?php
}
?>
<script type="text/javascript">
$(function() {
	
});
</script>